//菜单管理模块API
import axios from '../axios'

//保存菜单
export const save = (data) => {
  return axios({
    url: '/menu/save',
    method: 'post',
    data: data
  })
};

//查询菜单树
export const findMenuTree = () => {
  return axios({
    url: "/menu/findMenuTree",
    method: 'get'
  })
};

//删除菜单
export const batchDelete = (data) => {
  return axios({
    url: '/menu/delete',
    method: 'post',
    data: data
  })
};

//查询导航菜单树
export const findNavTree = (param) => {
  console.log(param);
  return axios({
    url: '/menu/findNavTree',
    method: 'get',
    params: param
  })
};

